package mysql

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	UserId     int     `gorm:"type:int(10);comment:用户ID"`
	GoodsId    int     `gorm:"type:int(10);comment:商品ID"`
	OrderSn    string  `gorm:"type:char(36);comment:订单号"`
	OrderPrice float64 `gorm:"type:decimal(10,2);comment:订单金额"`
	PayStatus  int     `gorm:"type:int(1);comment:支付状态:0-已支付，1-未支付"`
	Payment    int     `gorm:"type:int(1);comment:支付方式:0-微信，1-支付宝"`
	GoodsName  string  `gorm:"type:varchar(20);comment:商品名称"`
	GoodsImg   string  `gorm:"type:varchar(255);comment:商品封面"`
}
